<!doctype html>
<html>
<head>
    <include file="public/head"/>
    <title>后台操作日志</title>
    <meta name="description" content="ThinkCMF管理后台操作日志">
    <meta name="keywords" content="后台操作日志">
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>操作日志</a></li>
    </ul>
    <form class="well form-inline margin-top-20" class="js-ajax-form" method="post" action="{:cmf_plugin_url('QbtAdminLog://AdminIndex/index')}">
        <div class="search_type cc mb10">
            <div class="mb10">
                操作人：
                <input type="text" class="form-control" name="username" value="{:input('request.username')}" autocomplete="off">
                IP：
                <input type="text" class="form-control" name="ip" value="{:input('request.ip')}">
                选择日期：
                <input type="text" class="form-control js-bootstrap-date" name="date" value="{:input('request.date')}" autocomplete="off">
                URL/描述：
                <input type="text" class="form-control" name="keyword" value="{:input('request.keyword')}" placeholder="请输入关键词" autocomplete="off">
                <input type="submit" class="btn btn-primary" value="搜索"/>
                <a class="btn btn-danger" href="{:cmf_plugin_url('QbtAdminLog://AdminIndex/index')}">清空</a>
                </span>
            </div>
        </div>
    </form>

    <form method="post" class="js-ajax-form" action="#">
        <div class="table_list">
            <table class="table table-hover table-bordered table-list">
                <thead>
                <tr>
                    <th width="50">ID</th>
                    <th width="50">操作者ID</th>
                    <th width="100">操作者</th>
                    <th width="100">IP</th>
                    <th width="100">URL</th>

                    <th width="100">描述</th>
                    <th  width="400">SQL</th>
                    <th width="150">操作时间</th>
                </tr>
                </thead>
                <tbody>
                <foreach name="$lists" item="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.user_id}</td>
                        <td>{$vo.user_name}</td>
                        <td>{$vo.ip}</td>
                        <td>{$vo.request}</td>
                        <td >{$vo['content']}</td>
                        <td style=" WORD-BREAK: break-all; WORD-WRAP: break-word">{$vo.param}</td>
                        <td>{:date('Y-m-d H:i:s',$vo['addtime'])}</td>
                    </tr>
                </foreach>
                </tbody>
            </table>
            <div class="pagination">{$page}</div>
        </div>
    </form>
</div>
<include file="public/scripts"/>
</body>
</html>
